cmake_minimum_required(VERSION 3.5)

project(HelloWorld)

include_directories(${PROJECT_SOURCE_DIR}/dalidl_generator_cpp)

add_executable(dal_testcase_talker
    test_talker.cc
)
add_executable(dal_testcase_listener
    test_listener.cc
)
add_executable(dal_testcase_inner_proc_pubsub
    test_inner_proc_pubsub.cc
)

add_executable(dal_testcase_service
    test_service.cc
)

add_executable(dal_testcase_client
    test_client.cc
)

target_link_libraries(dal_testcase_talker dal )
target_link_libraries(dal_testcase_listener dal )
target_link_libraries(dal_testcase_inner_proc_pubsub dal )
target_link_libraries(dal_testcase_service dal )
target_link_libraries(dal_testcase_client dal )

install(TARGETS
        dal_testcase_talker dal_testcase_listener dal_testcase_inner_proc_pubsub
	dal_testcase_service dal_testcase_client
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/examples/bst-hanhai-dal-demo)
install(DIRECTORY ./conf
        DESTINATION ${CMAKE_INSTALL_BINDIR}/examples/bst-hanhai-dal-demo)
